package main

import "fmt"

/**
  枚举
*/

type Sex int

const (
	Woman Sex = iota
	Man
)

func main() {
	const pi = 3.14 //常量定义
	var Sunday = Weekday(0)

	fmt.Println(Sunday)
	//	iota := 0 // iota初始化为0  常量生成器枚举
	fmt.Println(pi)
	fmt.Println(Woman)
	fmt.Println(Man)
	var sex Sex = Man
	fmt.Println(sex)
}
